package com.hmall.ebiz.service;

import com.hmall.ebiz.common.ServerResponse;
import com.hmall.ebiz.model.DbConfig;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Thomas Wang
 * @since 2019-02-21
 */
public interface DbConfigService extends IService<DbConfig> {

//    查找
    ServerResponse searchConfigModel(Integer pageSize, Integer pageIndex, String dbName, Integer userId) throws Exception;

//    删除
    ServerResponse deleteConfigModel(String dbId, Integer userId) throws Exception;

//    更新或增加
    ServerResponse updateOrAddModel(String jsonModel, boolean type, Integer userId) throws Exception;

    //    查找byId
    ServerResponse selectModelById(Integer id, Integer userId) throws Exception;

    //    查找byId
    ServerResponse getTableList(Integer id, Integer userId) throws Exception;

    //    查找listString
    ServerResponse createCodeZip(String jsonArray, Integer userId, Integer dbId) throws Exception;
}
